<?php 
	session_start();
	include("ketnoi.php");
?>
<p>&nbsp;</p>
<div class="ht">

	<h5>CÁC KHÓA ĐÀO TẠO NGHIỆP VỤ<HR ></h5>
	<form method="post" name="f_timgia" > 
<?php
$query = "select * from `".$dulieu."`.`lophoc`";
$kq = mysql_query($query);
$tong=mysql_num_rows($kq);
$ht = ceil($tong/2);
?>
<table width="100%" border="0" >
  <tr valign="top">
    <td width="50%"><ul>
    <?php
				$query2 = "select * from  `".$dulieu."`.`lophoc` order by MaLopHoc asc limit 0,$ht";
				$kq2 = mysql_query($query2);
				while($row2 = mysql_fetch_array($kq2))
				{?>
				<li style="border-bottom:1px #999999 dotted; display: block; color:#000; margin-right:10px; padding:10px 5px; font-size:16px"><a href="nh_<?php echo $row2['MaLopHoc'] ?>.html"><?php echo $row2['TenLopHoc'] ?></a></li>
				<?php
				}
				?>
	
</ul></td>
    <td><ul>
    <?php
				$query2 = "select * from  `".$dulieu."`.`lophoc` order by MaLopHoc asc limit $ht,$tong";
				$kq2 = mysql_query($query2);
				while($row2 = mysql_fetch_array($kq2))
				{?>
				<li style="border-bottom:1px #999999 dotted; color:#000; display: block; margin-right:10px; padding:10px 5px;font-size:16px"><a href="nh_<?php echo $row2['MaLopHoc'] ?>.html"><?php echo $row2['TenLopHoc'] ?></a></li>
				<?php
				}
				?>
	
</ul></td>
  </tr>
</table>



  </form>
</div>
<p>&nbsp;</p>
<div class="main">

	<h5>LIÊN THÔNG ĐẠI HỌC <span> &nbsp;&nbsp;&nbsp;<a style="font-size:14px; font-family:Tahoma, Geneva, sans-serif" href="lienthong.html">chi tiết...</a></span><HR ></h5>
	<form method="post" name="f_timgia" > 

	</form>
</div>
<p>&nbsp;</p>
<div class="main" style="padding-left:10px; padding:10px">
<img src="images/TT.jpg" width="700" height="50" />
</div>
<table width="100%" >
  <tr>
    <td width="53%" valign="top">
<div class="main">

  <h5>CÁC KHÓA ĐÀO TẠO NGHIỆP VỤ</h5>
	<form method="post" name="f_timgia" > 
<table width="100%" border="0" style="color:#39c; font-size:14px; padding-left:10px">
  <tr  height="30px">
    <td width="22%">Số CMND:</td>
    <td width="68%" align="left"><input name="cmnd" type="text" value="<?php echo $_POST['cmnd']?>" /></td>
    <td  width="10%">&nbsp;</td>
  </tr>
    <tr  height="30px">
    <td>Trung tâm:</td>
    <td align="left"><select name="trungtam" style="width:150px" >
                     <option value="">Chọn trung tâm</option>
                                                               
                         <?php
					  $sql = "SELECT * FROM `".$dulieu."`.`coso`";
					  $giatritrave = mysql_query($sql);
						while($dongDL = mysql_fetch_array($giatritrave))
						{
							$TenNhHieu=$dongDL['TenCS'];
							$lienKet =$dongDL['MaCS'];
					  ?>
					  <option value="<?php echo $lienKet ?>"> <?php echo $TenNhHieu ?></option>
					  <?php
					  }
					   ?>
                           
                       </select></td>
    <td>&nbsp;</td>
  </tr></table>
	</form>
</div>

<div class="main">

	<h5>LIÊN THÔNG ĐẠI HỌC</h5>
	<form method="post" name="f_timnganh" > 
<table width="100%" border="0" style="color: #39C; font-size:14px; padding-left:10px">
  <tr  height="30px">
    <td width="22%">Số CMND:</td>
    <td width="68%" align="left"><input name="cmnd1" type="text" value="<?php echo $_POST['cmnd1']?>" /></td>
    <td  width="10%">&nbsp;</td>
  </tr>
    <tr  height="30px">
    <td>Ngành học:</td>
    <td align="left"><select name="trungtam" style="width:150px">
                     <option value="">Chọn ngành học</option>
                                                               
                         <?php
					  $sql = "SELECT * FROM `".$dulieu."`.`lophoclienthong`";
					  $giatritrave = mysql_query($sql);
						while($dongDL = mysql_fetch_array($giatritrave))
						{
							$TenNhHieu=$dongDL['TenLopLT'];  	 
							$lienKet =$dongDL['MaLopLT'];
					  ?>
					  <option class="pdropcap" value="<?php echo $lienKet ?>"> <?php echo $TenNhHieu ?></option>
					  <?php
					  }
					   ?>
                           
                       </select></td>
    <td>&nbsp;</td>
  </tr></table>
	</form>
</div>
    </td>
    <td valign="top">
    <div class="main">
    	<form method="post" name="f_timgia" > 
	<ul>
    <?php
				$query2 = "select * from  `".$dulieu."`.`coso` order by MaCS desc";
				$kq2 = mysql_query($query2);
				while($row2 = mysql_fetch_array($kq2))
				{?>
				<li style="display: list-item; font-size:16px; padding:5px 0"><a href="cs_<?php echo $row2['MaCS'] ?>.html">Cơ Sở <?php echo $row2['TenCS'] ?></a></li>
				<?php
				}
				?>
	
	</ul>
	</form></div>
    </td>
  </tr>
</table>



<div class="main">

  <h5>CÁC ĐƠN VỊ LIÊN KẾT</h5>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
   <?php
				$query2 = "select * from  `".$dulieu."`.`truonglk` order by MaTLK asc";  	 	
				$kq2 = mysql_query($query2);
				while($row2 = mysql_fetch_array($kq2))
				{?>
				<a href="<?php echo $row2['LinkLK'] ?>"><img src="upload/<?php echo $row2['DuongDan'] ?>" width="132" height="132" style="padding-left:50px"  /></a>
				<?php
				}
				?></div>
